<!DOCTYPE html>
<html lang="en" xmlns:v-bind="http://www.w3.org/1999/xhtml">
<head>
    <meta charset="UTF-8">
    <title>列表渲染</title>


</head>
<body>
    <div id="div">
        <ul>
            <li v-for="(name,index) in names">{{name}} -- {{index}}</li>
            <li v-for="stu in stus">{{stu.age}}--{{stu.name}}</li>
            <li v-for="val in student">{{val}}</li>
        </ul>

    </div>

<script src="js/vue.js"></script>
<script>
    new Vue({
        el:"#div",
        data:{
            names:["张三","李四","王五"],
            stus:[{name:"张三",age:18},{name:"李四",age:22},{name:"王五",age:23}],

            student:{
                name:"张三",
                age:23
            }
        }
    });
</script>
</body>
</html>